package cm.study.config.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

@ToString
@Builder
@Getter
public class FailInfo extends Result {
    protected static final Integer DEFAULT_CODE=50000;
    protected static final String DEFAULT_MESSAGE="操作失败";

    @JsonInclude(JsonInclude.Include.NON_NULL)
    protected final String exception;
    public FailInfo(String exception){
        super(false,DEFAULT_CODE,DEFAULT_MESSAGE);
        this.exception=exception;
    }
    public FailInfo(Integer code, String exception){
        super(false,code,DEFAULT_MESSAGE);
        this.exception=exception;
    }

}
